﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Direct.IDAL.User.Jurisdiction
{
    /// <summary>
    /// 修改密码仓储接口
    /// </summary>
    public interface  IModifyPasswordRepository:IAbsRepository
    {
        /// <summary>
        /// 判断一级密码
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<bool> CheckPassword(string usercode, string password);
        /// <summary>
        /// 判断二级密码
        /// </summary>
        /// <param name="usercode"></param>
        /// <param name="secondpassword"></param>
        /// <returns></returns>
        Task<bool> CheckSecondPassword(string usercode, string secondpassword);
        /// <summary>
        /// 修改一级密码
        /// </summary>
        /// <param name="password"></param>
        /// <param name="usercode"></param>
        /// <returns></returns>
        bool ModifyPassword(string password, string usercode);
        /// <summary>
        /// 修改二级密码
        /// </summary>
        /// <param name="password"></param>
        /// <param name="usercode"></param>
        /// <returns></returns>
        bool ModifySecondPassword(string password, string usercode);
    }
}
